from urllib import quote

def _quotify_function(func):
    def inner(*args, **kwargs):
        func_result = func(*args, **kwargs)
        return '%s;' % quote(str(func_result))
    return inner

def _combine_functions(*funcs):
    def inner(*args, **kwargs):
        result = ''
        for func in funcs:
            result += func(*args, **kwargs)
        return result
    return inner
